
// import lis from '@/views/task/lis'
import layout from '@/views/task/module/Layout'
export default [
  {
    path: '/task',
    name: 'task',
    component: () => import('@/views/task/lis'),
    affiliation: 'main',
    meta: { title: '模型训练', icon: 'icon4', name: 'task' },
  },
  {
    path: '/task/versionsdetail',
    name: 'taskversionsdetail',
    component: () => import('@/views/task/versionsdetail'),
    meta: {
      title: '模型训练',
      icon: 'icon4',
      affiliation: "task"
    }
  },
  {
    path: '/task/detail',
    name: 'taskdetail',
    component: () => import('@/views/task/detail'),
    meta: {
      title: '模型训练',
      icon: 'icon4',
      affiliation: "task"
    }
  },
  {
    path: '/task',
    name: 'task',
    component: layout,
    // component: lis,
    // redirect: "/task/code",
    // affiliation: 'main',
    meta: { title: '模型训练', icon: 'icon4', name: 'task' },
    children: [
      {
        path: 'code',
        name: 'taskcode',
        component: () => import('@/views/task/code'),
        meta: {
          title: '概览',
          icon: 'nav-menu-icon1',
          affiliation: "task"
        }
      },
      {
        path: 'metrics',
        component: () => import('@/views/task/metrics'),
        name: 'taskmetrics',
        meta: {
          title: '监控',
          icon: 'nav-menu-icon1',
          affiliation: "task"
        }
      },
      {
        path: 'log',
        component: () => import('@/views/task/log'),
        name: 'tasklog',
        meta: {
          title: '日志',
          icon: 'nav-menu-icon1',
          affiliation: "task"
        }
      },
      {
        path: 'webssh',
        component: () => import('@/views/task/webssh'),
        name: 'taskwebssh',
        meta: {
          title: 'webssh',
          icon: 'nav-menu-icon1',
          affiliation: "task"
        }
      }
    ]
  },
]
